// 游记相关接口
import request from '@/utils/request.js'

// 1. 游记列表
export const getArticleListApi = (params) => {
  return request.get('/travelManaGement', { params })
}

// 2. 每日推荐
export const getDayRcomApi = (params) => {
  return request.get('/gainDailyRecom', { params })
}

// 3. 删除每日推荐
export const delDayRcomApi = (params) => {
  return request.get('/deleteDailyRecom', { params })
}

// 4. 添加每日推荐
export const addDayRcomApi = (data) => {
  return request.post('/dailyRecom', data)
}

// 5. 根据关键词获取城市列表
export const getCitysApi = (keywords) => {
  return request.get('/china-data', { params: { keywords } })
}

// 6. 获取推荐游记【轮播图】
export const getBannerRcomApi = (params) => {
  return request.get('/gainRecomTravel', { params })
}

// 7. 删除推荐游记【轮播图】
export const delBannerRcomApi = (params) => {
  return request.get('/deleteRecomTravel', { params })
}

// 8. 添加推荐游记【轮播图】
export const addBannerRcomApi = (data) => {
  return request.post('/uploadFourTravel', data)
}

// 9. 修改推荐游记【轮播图】
export const updateBannerRcomApi = (data) => {
  return request.post('/modifyRecomTravel', data)
}
